faApp.controller('M2bWinListCtrl',['$scope','m2bService','$location','$controller','$route',function($scope,m2bService,$location,$controller,$route) {   
	$controller('BaseListCtrl', {$scope: $scope}); 

  $scope.list = [];
  $scope.loading = true;

	$scope.$watch('config',function(){
    m2bService.winList($scope.config).then(function(json){
      $scope.list = json.list;
      $scope.pager = json.pager;
      $scope.loading = false;
    });
  },true)

	$scope.stop = function(id){
    adService.adStop({id:id,status:"02"}).then(function(json){
      $route.reload();    
    });
	}; 
}]);
